import { Column, Entity, Index, PrimaryGeneratedColumn } from "typeorm";

@Index("platform_data_pkey", ["id"], { unique: true })
@Entity("platform_data", { schema: "public" })
export class PlatformData {
  @PrimaryGeneratedColumn({ type: "smallint", name: "id" })
  id: number;

  @Column("character varying", {
    name: "static_url",
    length: 50,
    default: () => "''",
  })
  staticUrl: string;

  @Column("character varying", {
    name: "device_qr",
    length: 50,
    default: () => "''",
  })
  deviceQr: string;

  @Column("jsonb", { name: "wechat", nullable: true })
  wechat: object | null;

  @Column("jsonb", { name: "alipay", nullable: true })
  alipay: object | null;

  @Column("jsonb", { name: "alicloud", nullable: true })
  alicloud: object | null;
}